package org.example.server.mapper;

import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.ScheduleInfo;

import java.util.Date;
import java.util.List;

@Mapper
public interface ScheduleMapper {


  ScheduleInfo selectByDD(@Param("doctorCode") String doctorCode, @Param("scheDate") Date scheDate);

    ScheduleInfo selectById(String scheduleId);

    void updateBy(ScheduleInfo schedule);

    List<ScheduleInfo> selectBy(Date scheDate);

    List<ScheduleInfo> getByDeptCode(String deptCode);

    List<ScheduleInfo> selectByDoctorCode(String doctorCode);

    // ScheduleInfo selectByDS(String doctorCode, Date scheDate);
}
